home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
X User Tools
/
X User Tools (O'Reilly and Associates)(1994).ISO
/
sun4c
/
archive
/
tcltk.z
/
tcltk
/
man
/
catn
/
update.n
< prev
next >
Wrap
Text File
|
1994-09-20
|
2KB
|
67 lines
update(n) Tk Commands
_________________________________________________________________
NAME
update - Process pending events and/or when-idle handlers |
SYNOPSIS |
update ?idletasks?
_________________________________________________________________
DESCRIPTION
This command is used to bring the entire application world
``up to date.'' It flushes all pending output to the
display, waits for the server to process that output and
return errors or events, handles all pending events of any
sort (including when-idle handlers), and repeats this set of
operations until there are no pending events, no pending
when-idle handlers, no pending output to the server, and no
operations still outstanding at the server.
If the idletasks keyword is specified as an argument to the |
command, then no new events or errors are processed; only |
when-idle idlers are invoked. This causes operations that |
are normally deferred, such as display updates and window |
layout calculations, to be performed immediately. |
The update idletasks command is useful in scripts where |
changes have been made to the application's state and you |
want those changes to appear on the display immediately, |
rather than waiting for the script to complete. The update |
command with no options is useful in scripts where you are |
performing a long-running computation but you still want the |
application to respond to user interactions; if you occa- |
sionally call update then user input will be processed dur- |
ing the next call to update.
KEYWORDS
event, flush, handler, idle, update
Tk 1